package com.jinghong.registerlogin.service.impi;

import com.jinghong.registerlogin.mapper.EvaluationQuestionMapper;
import com.jinghong.registerlogin.model.pojo.EvaluationQuestion;
import com.jinghong.registerlogin.service.EvaluationQuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClassName:EvaluationQuestionServiceimpi
 * Package:com.jinghong.registerlogin.service.impi
 * Description:
 *
 * @Author: 寻月君子
 * @CreatTime:2024/5/26 21:55
 * Version:1.0
 */
@Service
public class EvaluationQuestionServiceimpi implements EvaluationQuestionService {

    @Autowired
    private EvaluationQuestionMapper evaluationQuestionMapper;

    @Override
    public void bulkInsert(List<EvaluationQuestion> evaluationQuestions) {
       evaluationQuestionMapper.bulkInsert(evaluationQuestions);
    }

    @Override
    public List<EvaluationQuestion> getByEvaluationId(Integer id) {
        return evaluationQuestionMapper.getByEvaluationId(id);


    }
}
